/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.notation;

import org.jfonia.connect5.basics.BasicValueNode;
import org.jfonia.connect5.basics.MutableValueNode;

/**
 *
 * @author Rik Bauwens
 */
public class Rest extends NoteOrRest
{
        MutableValueNode<Integer> restNode;

        public Rest(int rest, int dots)
        {
                super(dots);
                this.restNode = new BasicValueNode<Integer>(rest);
        }
        public int getRest()
        {
                return restNode.getValue();
        }

        public void setRest(int rest)
        {
                restNode.setValue(rest);
        }

        public MutableValueNode<Integer> getRestNode()
        {
                return restNode;
        }
}
